package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.supervise.JgInvestigationContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JgInvestigationContentMapper extends BaseMapper<JgInvestigationContent> {

    /**
     * 获取调查处理下面的问题项列表
     * @param investigationId
     * @return
     */
    List<Map<String, Object>> selectProblemList(@Param("investigationId") Long investigationId);


    /**
     * 获取调查处理下面的问题项列表
     * @param investigationId
     * @return
     */
    List<JgInvestigationContent> selectByInvestigationId(@Param("investigationId") Long investigationId);

    /**
     * 查询调查处理下面需要调查的问题数目
     * @param id
     * @return
     */
    int selectCountByInvestigationId(long id);

    int batchInsert(@Param("list") List<JgInvestigationContent> insertList);
}